package com.zzl.example.springboottest.util;

import java.util.regex.Pattern;

/**
 * @ClassName PhoneUtil
 * @Description PhoneUtil
 * @Author Zengliang Zheng
 * @Date 2023/3/16 15:41
 * @Version 1.0
 */
public class PhoneUtil {
    public static void main(String[] args) {
        System.out.println(validaPhoneNumber("135656895266"));
    }

    public static Boolean validaPhoneNumber(String phoneNumber){
        String s = "^1\\d{10}$";
        return Pattern.compile(s).matcher(phoneNumber).find();
    }
}

    
